// JavaScript Document
$(document).ready(function(){
	var wHeight = $(window).height();
	var wWidth = $(window).width();
	
	$('.slider ul').cycle({ 
		fx			:    'fade', 
    	delay		: -1000,
		speed		:2500,
		timeout		:3000,
		random		:1,
		pause		:1
	});
	
	
	
	/*
	$('#gallery-image').cycle({ 
		fx					:'fade', 
		speed				:1500, 
		timeout				: 3000,
		random				:1,
		pager				:  '#gallery-thumb ul',
		pagerAnchorBuilder	: function(idx, slide) { 
			// return selector string for existing anchor 
			//return '#gallery-thumb ul li:eq(' + idx + ') a'; 
			return '<li><a href="#"><img src="' + slide.src + '" width="103" height="83" /></a></li>'; 
		} 
	});
	*/
	
	$('#gallery-image ul').cycle({ 
		fx					:'fade', 
		speed				:1500, 
		timeout				: 3000,
		random				:1,
		pager				:  '#gallery-thumb ul',
		pagerAnchorBuilder	: function(idx, slide) { 
			// return selector string for existing anchor 
			return '#gallery-thumb ul li:eq(' + idx + ') a'; 
			
		} 
	});
	
	/*	
	$('#homepage-partner-list ul li a img, .eachTab-list li img').hover(function(){
		$(this).stop().animate({opacity:1},300)
	},function(){
		$(this).stop().animate({opacity:0.7},300)
	})

	
	*/
		
	
	//Toggle text input with class "txtInput_toggle"
	$('.txtInput_toggle').focus(function() {
		value=$(this).val();
		$(this).attr("value","");
	});
	$('.txtInput_toggle').blur(function() {
		if($(this).val()=="") {
			$(this).val(value);
		}
	});	
	
});
